import dayjs from 'dayjs'

const filtertime = (time: number, format: string) => {
  return dayjs(time).format(format)
}

export default (app: any) => {
  app.config.globalProperties.$filters = {
    filtertime
  }
}
